/**
 * Created by 15c on 2018/2/4.
 */
app.controller("mysettings", function ($http, $scope) {
    //证书
    var token = localStorage.getItem('token');
    $scope.logout = function () {
        if (!token) {
            $.toast("亲，您还未登录");
            location.href = '#personal-center';
            return;
        }

        $.confirm('你确定注销吗？', '', function () {
            if (token) {
                localStorage.removeItem("token");
                $.toast('已注销');
                location.href = '#home';
            }


        }, function () {
            $.toast('已取消')
        });


    };
    $scope.getAboutUs=function () {
        location.href = '#aboutus';
    }

});